user nginx;
worker_processes {{ nginx.worker_processes }};
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;

worker_rlimit_nofile {{nginx.worker_rlimit_nofile}};

events {
    worker_connections {{nginx.worker_connections }};
    multi_accept {{ nginx.multi_accept }};
}
http {
    sendfile {{ nginx.send_file }};
    tcp_nopush {{ nginx.tcp_nopush }};
    tcp_nodelay {{ nginx.tcp_nodelay }};
    keepalive_timeout {{ nginx.keepalive_timeout }};
    server_tokens {{ nginx.server_tokens }};
    include /etc/nginx/mime.types;
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';
    access_log /var/log/nginx/access.log main;
    error_log /var/log/nginx/error.log warn;
    gzip {{ nginx.gzip }};
    gzip_types {{ nginx.gzip_types | join(' ') if nginx.gzip_types | length > 0 else 'text/plain'}};
    gzip_min_length {{nginx.gzip_min_length}};
    gzip_disable "msie6";

    include /etc/nginx/conf.d/*.conf;
}
